package com.hivis.mapper;

import com.hivis.entity.SmsMsg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SmsMsgMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SmsMsg record);

    int insertSelective(SmsMsg record);

    SmsMsg selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SmsMsg record);

    int updateByPrimaryKey(SmsMsg record);

    void batchInsert(List<SmsMsg> records);
    void deleteExpiredMessage(@Param("hour") int expireHours);
}